from machine import Pin,PWM
pwm=PWM(Pin(2),freq=1,duty=255)